/**
* 上海中赢金融信息服务有限公司
* Copyright (c) 2016, chinazyjr All Rights Reserved.
*/
package com.chinazyjr.user.service;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * 
 * <b>Description：</b> 启动Dubbo服务用的MainClass.<br/>
 * <b>ClassName：</b> DubboProvider <br/>
 * <b>@author：</b> jackyshang <br/>
 * <b>@date：</b> 2016年7月12日 下午3:59:10 <br/>
 * <b>@version: </b> <br/>
 */
public class DubboProvider_cssProvider {

    private static final Logger log = LoggerFactory.getLogger(DubboProvider_cssProvider.class);

    public static void main(String[] args) {
        try {
            ClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext(
                    "classpath:spring/spring-context.xml");
            context.start();
            System.out.print("====================start finished!===============================");
        } catch (Exception e) {
            log.error("== DubboProvider context start error:", e);
        }
        synchronized (DubboProvider_cssProvider.class) {
            while (true) {
                try {
                    DubboProvider_cssProvider.class.wait();
                } catch (InterruptedException e) {
                    log.error("== synchronized error:", e);
                }
            }

        }
    }

}
